export default {
    routes: [
        { 
            path: '/', 
            name: 'Home',
            component: () => import('@/views/Home')
        },
        {
            path: '/login',
            name: 'Login',
            component: () => import('@/components/Login'),
            
        },
        {
            path: '/register',
            name: 'Register',
            component: () => import('@/components/Register')
        },
        {
            path: '/channel/:action/:page',
            name: 'ChannelNews',
            component: () => import('@/components/ChannelNews')
        },
        {
            path: '*',  //表示匹配所有路径
            name: 'NotFound',
            component: () => import('@/components/NotFound')
        },
    ],
    mode: 'history'
}